package com.hiv.client.model.weixin;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_4_1.shtml
 * 支付通知
 *
 * https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_3_5.shtml todo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WeixinPayNotifyRes implements Serializable {
  public static final WeixinPayNotifyRes ERR_RES = new WeixinPayNotifyRes("Fail", "失败");
  public static final WeixinPayNotifyRes SUC_RES = new WeixinPayNotifyRes("SUCCESS", "成功");

  /** 错误码，SUCCESS为清算机构接收成功，其他错误码为失败。示例值：SUCCESS */
  private String code = "SUCCESS";
  /** 返回信息，如非空，为错误原因。示例值：系统错误 */
  private String message = "成功";

}
